package com.jianggujin.test.module;

import com.jianggujin.modulelink.action.JAction;
import com.jianggujin.modulelink.exception.JModuleLinkException;
import com.jianggujin.modulelink.support.JDisposable;
import com.jianggujin.modulelink.support.JInitializing;
import com.jianggujin.modulelink.support.annotation.JActionComponent;

/**
 * 自定义Action
 * 
 * @author jianggujin
 *
 */
@JActionComponent(isDefault = true, name = "testActionA")
public class Action1 implements JAction, JInitializing, JDisposable {

    @Override
    public Object execute(Object in) throws JModuleLinkException {
        return this.getClass().getName();
    }

    @Override
    public void destroy() {
        System.out.println("destroy....");
    }

    @Override
    public void initialize() {
        System.out.println("initialize....");
    }
}